<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
   <head><title>IGNORED</title></head>  
   <body>        
      <ui:composition>    
         <div class="welcome">
            Добро пожаловать<br /><h:outputText value="#{authBean.currentUser.shortName}" />
            <h:form>
            <h:commandButton value="Выйти" action="#{authBean.doLogout}" />
            </h:form>
            <div><h:link outcome="groups" value="Группы"/></div>
            <h:panelGroup rendered="#{dialogueBean.countUnreadMessages == 0}">   	  
            	<div><h:link outcome="dialogues" value="Диалоги"/></div>
            </h:panelGroup>
            <h:panelGroup rendered="#{dialogueBean.countUnreadMessages > 0}">   	  
            	<div><strong><h:link outcome="dialogues" value="Диалоги (#{dialogueBean.countUnreadMessages})"/></strong></div>
            </h:panelGroup>
         </div>	   	
         
      </ui:composition>
   </body>
</html>